<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>广告位管理</title> <#include "/WEB-INF/content/module-index.html">
<script type="text/javascript">
function devTypeFormatter(value,rowData,rowIndex){
	if(value=="other"){
		return "终端设备";
	}else if(value=="android"){
		return "android";
	}else if(value=="ios"){
		return "ios";
	}
}
</script>
<style>
a.btn-border{
	border: 1px solid #ccc;
}
</style>
</head>
<body>
<body class="easyui-layout">
	<div region="center" style="padding: 5px; background:#eee;">
		<div id="toolbar">
		<@auth code="ad:strategy:new">
			<a href="javascript:void(0);" class="easyui-linkbutton btn-border" plain="true" iconCls="icon-add" onclick="javascript:add();">新增</a> 
		</@auth>
		<@auth code="ad:strategy:*:edit">
			<a href="javascript:void(0);" class="easyui-linkbutton btn-border" plain="true" iconCls="icon-edit" onclick="javascript:edit();">编辑</a> 
		</@auth>	
		<@auth code="ad:strategy:*:delete"> 
			<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-remove" style="border: 1px solid #ccc" onclick="javascript:del()">删除</a>
		</@auth>
		</div>
		<table id="grid" class="easyui-datagrid" url="query" align="center" idField="id" rownumbers="true" striped="true" fitColumns="true" fit="true" pagination="true" singleSelect="true" toolbar="#toolbar">
			<thead>
				<tr>
					<th field="adPosName" width="50">广告位</th>
					<th field="adName" width="50">广告</th>
					<th field="devType" width="50" formatter="devTypeFormatter">设备类型</th>
					<th field="ver" width="50">设备版本</th>
					<th field="startTime" width="50">开始投放时间</th>
					<th field="endTime" width="50">结束投放时间</th>
					<th field="createTime" width="30">创建时间</th>
					<th field="creator" width="50">创建者</th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</body>
</html>